package org.p2psimulator.entity.protocol.messages.general;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

@SuppressWarnings ("unchecked")
public class QueryHitMessage extends Message {

	public QueryHitMessage(Id origin, Id destination, int transactionId,
			BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);
	}
	private Id fileId;


	public Id getFileId() {
		return fileId;
	}

	public void setFileId(Id fileId) {
		this.fileId = fileId;
	}


	@Override
	public String getName() {

		return MessageTypes.QUERY_HIT_MESSAGE.getName();
	}
	@Override
	public MessageTypes getMessageType() {

		return MessageTypes.QUERY_HIT_MESSAGE;
	}

}
